Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 7 - View-Related Objects / View-Related Objects Reference
View Port Functions / Manipulating View Port Object Properties


GXSetViewPortAttributes

You can use the GXSetViewPortAttributes function to set or clear the attributes of a view port object.

void GXSetViewPortAttributes(gxViewPort target, 
                              gxPortAttribute attributes);
target
A reference to the view port whose attributes you wish to set.
attributes
The new view port attributes to be assigned.
DESCRIPTION
The GXSetViewPortAttributes function sets the attributes of the view port object referenced in the target parameter to those specified in the attributes parameter. If you pass gxNoAttributes for the attributes parameter, all attributes are cleared.

ERRORS, WARNINGS, AND NOTICES
Errors 
invalid_viewPort_reference 
parameter_out_of_range(debugging version)
Notices (debugging version) 
attributes_already_set 
SEE ALSO
For an example of the use of this function, see Listing 7-1 on page 7-42.

View port attributes are described in the section "View Port Attributes" on page 7-20.

To examine a view port's attributes, use the GXGetViewPortAttributes function, described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996